//
//  NewPageButton.swift
//  RssFly
//
//  Created by shen on 2023/10/17.
//

import SwiftUI

struct NewPageButton: View {
    @Binding var showingNewPageSheet: Bool

    var body: some View {
        Button {
            showingNewPageSheet = true
        } label: {
            Label {
                Text("New Page", comment: "Button label.")
            } icon: {
                Image(systemName: "folder.badge.plus")
            }
        }
        .keyboardShortcut("n", modifiers: [.command, .shift], localization: .withoutMirroring)
        .accessibilityIdentifier("NewPage")
    }
}
